package com.jjx.trainingapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jjx.trainingapi.entity.po.DcCourse;
import com.jjx.trainingapi.entity.po.QuestionItem;
import com.jjx.trainingapi.entity.po.UserRecordError;
import com.jjx.trainingapi.entity.po.UserRecordFavorite;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
public interface UserRecordFavoriteService extends IService<UserRecordFavorite> {


    /**
     * 添加收藏
     */
    void addFavoriteQuestion(UserRecordError param);

    /**
     * 检测是否点赞
     * @param param
     * @return
     */
    boolean checkFavoriteQuestion(UserRecordError param);

    /**
     * 收藏列表
     * @param param
     * @return
     */
    List<QuestionItem> favoriteQuestionList(DcCourse param);
}

